#include<bits/stdc++.h>
using namespace std;
const int mod=998244353;
long long n,m,q,k,qwq;
int main()
{
	freopen("sequence.in","r",stdin);
	freopen("sequence.out","w",stdout);
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	srand(time(0));
	qwq=rand()%10000;
	cin>>n>>m>>q>>k;
	if(q<m) 
	{
		cout<<0;
		return 0;
	}
	for(int i=1;i<=qwq;++i)
		srand(time(0));
	cout<<1ll*rand()*rand()%mod;
	return 0;
 } 
